﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/default.Master" AutoEventWireup="true"
    CodeBehind="Monthly-Plan-Details.aspx.cs" Inherits="NRCP.Monthly_Plan_Details" %>

<%@ Register Assembly="NRCP" Namespace="UI.Library.Web" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="grid_20 form-contents alpha">
        <cc1:ResponseMessage ID="respMessage" runat="server"></cc1:ResponseMessage>
    </div>
    <div class="grid_24">
        <label>
            Region</label>
        <asp:DropDownList ID="ddlDivision" runat="server">
        </asp:DropDownList>
        <asp:Button ID="btnSearch" runat="server" Text="Show" CssClass="button medium green"
            OnClick="btnSearch_Click" />
    </div>
    <br class="clear" />
    <div class="grid_20 alpha">
        <table class="mGrid">
            <thead>
                <tr>
                    <th>
                        Chemical Group
                    </th>
                    <th>
                    </th>
                </tr>
            </thead>
            <tbody>
                <asp:Repeater ID="repPlan" runat="server" OnItemDataBound="repPlan_ItemDataBound">
                    <ItemTemplate>
                        <tr>
                            <td>
                                <%# Eval("NationalPlanChemicalGroup.ChemicalGroup.Name")%>
                            </td>
                            <td>
                                <table class="mGrid">
                                    <thead>
                                        <tr>
                                            <th>
                                                District
                                            </th>
                                            <th>
                                                Upazilla
                                            </th>
                                            <th>
                                                Month
                                            </th>
                                            <th>
                                                Sample Count
                                            </th>
                                        </tr>
                                    </thead>
                                    <asp:Repeater ID="repBreakdown" runat="server">
                                        <ItemTemplate>
                                            <tr>
                                                <td>
                                                    <%# Eval("SubDistrict.District.Name")%>
                                                </td>
                                                <td>
                                                    <%# Eval("SubDistrict.Name")%>
                                                </td>
                                                <td>
                                                    <%# System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(Convert.ToInt32(Eval("Month")))%>
                                                </td>
                                                <td>
                                                    <%# Eval("Count")%>
                                                </td>
                                            </tr>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </table>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </tbody>
        </table>
    </div>
</asp:Content>
